import requests
import json

url = 'https://httpbin.org/put'
headers = {'Content-Type': 'application/json'}
data = {
    'name': 'tynam',
    'password': '123456'
}

response = requests.put(url,data=json.dumps(data), headers=headers)
print(response.text)



